package com.campus.configura;

import java.net.Socket;
import java.util.*;

public class test {
    public static void main(String[] args) {
        Set set = new HashSet();
        set.add(new Date());
        set.add("apple");
        set.add(new Socket());
        boolean contains = set.contains("apple");
        if(contains){
            System.out.println("Set集合包含字符串apple");
        }else{
            System.out.println("Set集合不包含字符串apple");
        }
    }
}

